package com.zj.z11select.controller;

import com.zj.z11select.service.impl.TestServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhouJie
 * @date 2021-11-10 22:04
 */
@Slf4j
@CrossOrigin
@RestController
@RequestMapping("/test")
@RequiredArgsConstructor
public class TencentController {

    private final TestServiceImpl testService;

    @GetMapping("/createBucket")
    public void createBucket(){
        testService.createBucket();
    }


    @GetMapping("/queryBucket1")
    public void queryBucket1(){
        testService.queryBucket1();
    }


    @GetMapping("/uploadBucket1")
    public void uploadBucket1(){
        testService.uploadBucket1();
    }

    @GetMapping("/queryObjectListForBucket")
    public void queryObjectListForBucket(){
        testService.queryObjectListForBucket();
    }
}
